import * as THREE from "three";
import camera from '@/three/Camera'
import scene from '@/three/Scene'
// 导入控制器
import controls from '@/three/controls'
// 导入渲染器
import renderer from "@/three/renderer"
import  awater  from '@/three/mesh/Awater'
const clock = new THREE.Clock()
function animate(t) {
  controls.update();
  requestAnimationFrame(animate);
  const time = performance.now() * 0.001;
  // 使用渲染器渲染相机看这个场景的内容渲染出来
  awater.water.material.uniforms['time'].value += 1.0 / 100.0; 
  renderer.render(scene, camera);
}

export default animate